package com.leo.quartz.common.lang;


/**
 * 返回实体工具类
 *
 * @author liusl
 * @version 1.0
 * @date 2018/12/6 20:30
 */
public enum RunStatusEnum {
        /**未运行*/
        NOT_RUN,
        /**等待运行中*/
        WAIT_RUN,
        /**运行中*/
        RUN,
        /**未知状态*/
        UN_KNOW;
        public static RunStatusEnum valueOf(int ordinal) {
            if (ordinal < 0 || ordinal >= values().length) {
                return UN_KNOW;
            }
            return values()[ordinal];
        }

}